package com.elastic.strategy;

import com.elastic.strategy.interfaces.Discount;

public class MovieTicket {

    private Double price;

    private Discount discount;

    public void setPrice(Double price){
        this.price = price;
    }

    public void setDiscount(Discount discount){
        this.discount= discount;
    }

    public Double getPrice(){
        return this.discount.calculate(this.price);
    }



}
